package cn.anxin.a9.avplayer;

import java.util.Map;

public class AVEvent {
    public final int type;
    public final Map params;

    AVEvent(int type){
        this.type = type;
        params = null;
    }

    AVEvent(int type, Map params){
        this.type = type;
        this.params = params;
    }

    public interface Listener<T extends AVEvent> {
        void onEvent(T event);
    }
}
